export class Rain {
  // 位置
  x: number
  y: number
  // 宽度
  width: number
  // 高度
  height: number
  //死亡
  dead: boolean

  constructor(x: number, y: number, width: number, height: number, dead: boolean) {
    this.x = x
    this.y = y
    this.width = width
    this.height = height
    this.dead = dead
  }

  // 保证高时钟是最长的
  exchangeWithHeight() {
    if (this.width > this.height) {
      const t = this.width
      this.width = this.height
      this.height = this.width
    }
  }
}
